//===============================================
// DEBUG.C
//===============================================

#include "windows.h"
#include "stdio.h"

void DbgStr(LPCTSTR lpStrPrefix, LPCTSTR lpStrFmt, ...)
{
    TCHAR buf[1024];
    va_list ap;
    lstrcpy(buf, lpStrPrefix);


    va_start(ap, lpStrFmt);
    wvsprintf(buf + lstrlen(buf),lpStrFmt, ap);
    lstrcat (buf,TEXT("\r\n"));
    OutputDebugString(buf);
}

// 2007-02-28:thk:replace the 'DbgPrint' function which won't work anymore in user mode (>= WDK build 6000)
//
// 2007-03-07:thk:now use DbgStr() for all Debugoutput
// 2007-02-28:thk:<end>
// 2007-03-07:thk:<end>